package com.ruoyi.project.wx.service.impl;

import com.ruoyi.project.wx.dao.TreatyDao;
import com.ruoyi.project.wx.domain.TreatyDO;
import com.ruoyi.project.wx.service.TreatyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TreatyServiceImpl implements TreatyService {
	@Autowired
	private TreatyDao treatyDao;
	
	@Override
	public TreatyDO get(Integer id){
		return treatyDao.get(id);
	}
	
	@Override
	public List<TreatyDO> list(Map<String, Object> map){
		return treatyDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return treatyDao.count(map);
	}
	
	@Override
	public int save(TreatyDO treaty){
		return treatyDao.save(treaty);
	}
	
	@Override
	public int update(TreatyDO treaty){
		return treatyDao.update(treaty);
	}
	
	@Override
	public int remove(Integer id){
		return treatyDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return treatyDao.batchRemove(ids);
	}

    @Override
    public List<TreatyDO> likeList(Map<String, Object> map){
        return treatyDao.likeList(map);
    }
    @Override
    public int likeListCount(Map<String, Object> map){
        return treatyDao.likeListCount(map);
    }

    @Override
    public TreatyDO getTreaty(Map<String, Object> params) {
		TreatyDO treatyDO =treatyDao.getTreatyByStatus(params);
		return treatyDO;
    }

}
